package main.resources.model.entity.moodle;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigInteger;


/**
 * The persistent class for the mdl_choice database table.
 * 
 */
@Entity
@Table(name="mdl_choice")
public class MdlChoice implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String id;

	private boolean allowupdate;

	private boolean completionsubmit;

	private BigInteger course;

	private int display;

    @Lob()
	private String intro;

	private int introformat;

	private boolean limitanswers;

	private String name;

	private boolean publish;

	private boolean showresults;

	private boolean showunanswered;

	private BigInteger timeclose;

	private BigInteger timemodified;

	private BigInteger timeopen;

    public MdlChoice() {
    }

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public boolean getAllowupdate() {
		return this.allowupdate;
	}

	public void setAllowupdate(boolean allowupdate) {
		this.allowupdate = allowupdate;
	}

	public boolean getCompletionsubmit() {
		return this.completionsubmit;
	}

	public void setCompletionsubmit(boolean completionsubmit) {
		this.completionsubmit = completionsubmit;
	}

	public BigInteger getCourse() {
		return this.course;
	}

	public void setCourse(BigInteger course) {
		this.course = course;
	}

	public int getDisplay() {
		return this.display;
	}

	public void setDisplay(int display) {
		this.display = display;
	}

	public String getIntro() {
		return this.intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public int getIntroformat() {
		return this.introformat;
	}

	public void setIntroformat(int introformat) {
		this.introformat = introformat;
	}

	public boolean getLimitanswers() {
		return this.limitanswers;
	}

	public void setLimitanswers(boolean limitanswers) {
		this.limitanswers = limitanswers;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean getPublish() {
		return this.publish;
	}

	public void setPublish(boolean publish) {
		this.publish = publish;
	}

	public boolean getShowresults() {
		return this.showresults;
	}

	public void setShowresults(boolean showresults) {
		this.showresults = showresults;
	}

	public boolean getShowunanswered() {
		return this.showunanswered;
	}

	public void setShowunanswered(boolean showunanswered) {
		this.showunanswered = showunanswered;
	}

	public BigInteger getTimeclose() {
		return this.timeclose;
	}

	public void setTimeclose(BigInteger timeclose) {
		this.timeclose = timeclose;
	}

	public BigInteger getTimemodified() {
		return this.timemodified;
	}

	public void setTimemodified(BigInteger timemodified) {
		this.timemodified = timemodified;
	}

	public BigInteger getTimeopen() {
		return this.timeopen;
	}

	public void setTimeopen(BigInteger timeopen) {
		this.timeopen = timeopen;
	}

	public String toString() {
		return "{id: " + this.id + "; course: " + this.course + "; name: " + this.name + "; intro: " + this.intro + "}";
	}
	
}